package com.alibaba.citrus.ots.sales.plan.functions.salesplan.adjust;

import com.alibaba.citrus.ots.sales.plan.repository.SalesPlanAdjustDetailRepository;
import com.alibaba.citrus.ots.sales.plan.sdo.SalesPlanAdjustDetailSDO;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author yuhailin
 * @description:
 * @date 2021-10-26 11:17
 */
@Component
public class SalesPlanAdjustDetailAbility {

    @Resource
    SalesPlanAdjustDetailRepository salesPlanAdjustDetailRepository;

    public String batchCreateSalesPlanAdjustDetail(List<SalesPlanAdjustDetailSDO> salesPlanAdjustDetailSDOList) {
        return salesPlanAdjustDetailRepository.batchCreateSalesPlanAdjustDetail(salesPlanAdjustDetailSDOList);
    }

    public Integer batchUpdateAdjustDetailStatus(List<SalesPlanAdjustDetailSDO> salesPlanAdjustDetailSDOList) {
        return salesPlanAdjustDetailRepository.batchUpdateAdjustDetailStatus(salesPlanAdjustDetailSDOList);
    }


}
